package string;

public class StartsWithDemo {
    public static void main(String[] args) {
        String str = "aaacccddd";
        System.out.println(str.startsWith("aa"));
        System.out.println(str.endsWith("cc"));
    }
}
